package neusoft.edu.cn.guanshangshiguang.service;

import java.util.List;

import neusoft.edu.cn.guanshangshiguang.bean.BorrowBean;
import neusoft.edu.cn.guanshangshiguang.bean.ChangeListBean;
import neusoft.edu.cn.guanshangshiguang.bean.CommentOnlineBean;
import neusoft.edu.cn.guanshangshiguang.bean.CommentSchoolBean;
import neusoft.edu.cn.guanshangshiguang.bean.OnlineBookListBean;
import neusoft.edu.cn.guanshangshiguang.bean.BookTypeBean;
import neusoft.edu.cn.guanshangshiguang.bean.PersonalBookListBean;
import neusoft.edu.cn.guanshangshiguang.bean.RegisterBean;
import neusoft.edu.cn.guanshangshiguang.bean.SchoolBookListBean;
import neusoft.edu.cn.guanshangshiguang.bean.SearchOnlineBean;
import neusoft.edu.cn.guanshangshiguang.bean.SearchSchoolBean;
import neusoft.edu.cn.guanshangshiguang.bean.User_inforBean;
import neusoft.edu.cn.guanshangshiguang.bean.loginBean;
import neusoft.edu.cn.guanshangshiguang.bean.shenqingBean;
import neusoft.edu.cn.guanshangshiguang.bean.shenqingListBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface Service {
    @GET("login.php")
    Call<loginBean> getLogin(@Query("unumber") String unumber, @Query("password") String password);
    
    @GET("register.php")
    Call<RegisterBean> getRegister(@Query("unumber") String unumber, @Query("uname") String uname,
                                   @Query("password") String password, @Query("gender") String gender,
                                   @Query("school") String school, @Query("student_id") String student_id,
                                   @Query("department") String department);

    @GET("User_information.php")
    Call<User_inforBean> getUserInfor(@Query("uid") String uid);

    @GET("Books_Online.php")
    Call<List<BookTypeBean>> getBookType();

    @GET("BooksList_Online.php")
    Call<List<OnlineBookListBean>> getOnlineBookList(@Query("tid") String tid);

    @GET("BooksList_Personal.php")
    Call<List<PersonalBookListBean>> getPersonalBookList();

    @GET("Books_School.php")
    Call<List<SchoolBookListBean>> getSchoolBookList(@Query("sname") String sname);

    @GET("search_online.php")
    Call<List<SearchOnlineBean>> getOnlineSearchList(@Query("bname") String bname);

    @GET("search_school.php")
    Call<List<SearchSchoolBean>> getSchoolSearchList(@Query("bname") String bname, @Query("sname") String sname);

    @GET("borrow.php")
    Call<List<BorrowBean>> getBorrowList(@Query("uid") String uid);

    @GET("borrow_content_online.php")
    Call<List<CommentOnlineBean>> getBorrowOnlineCommentList(@Query("bid") String bid);

    @GET("borrow_content_school.php")
    Call<List<CommentSchoolBean>> getBorrowSchoolCommentList(@Query("school_bid") String school_bid);

    @GET("ChangeList.php")
    Call<List<ChangeListBean>> getChangeList();

    @GET("shenqingChange.php")
    Call<shenqingBean> getShenqingjiaohuan(@Query("uid") String uid, @Query("change_id") String change_id,
                                           @Query("uschool") String uschool, @Query("content") String content,
                                           @Query("shenqing_bname") String shenqing_bname, @Query("old") String old,
                                           @Query("copy") String copy);

    @GET("shenqingChangeList.php")
    Call<List<shenqingListBean>> getshenqingChangeList(@Query("change_id") String change_id);
}
